import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/',
      name: 'menu',
      component: () => import('../views/IndexView.vue'),
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: () => import('../views/HospView.vue'),
    },
    {
      path: '/patient-form',
      name: 'patientForm',
      component: () => import('../views/PatientForm.vue'),
    },
    {
      path: '/patient-profile',
      name: 'patientProfile',
      component: () => import('../views/PatientProfile.vue'),
    },
    {
      path: '/payment-table',
      name: 'paymentTable',
      component: () => import('../views/PaymentTable.vue'),
    },
  ],
})

export default router
